package org.test;

import java.io.*;


public class test
{
	
  public static void test()
  {
	  try
	  {
		  return ;
	  }
	  catch(Exception e)
	  {
		  
	  }
	  finally
	  {
		  System.out.println("aaaaaaaaaaa");
	  }
  }
  public static void main(String [] args)
  {
/*	  String str = "/abcd/eft";
	  int n  = str.lastIndexOf("/");
	  if(n>0)
	  str = str.substring(0,n);
	  System.out.println("----------" + str);
	  FileInputStream dataReader = null;
	  FileOutputStream datawriter = null;
	  try
	  {
		  
		    datawriter = new FileOutputStream("d:\\B.rmvb");
		    dataReader = new FileInputStream("d:\\A.rmvb");
	 
			byte [] buf = new byte[4096];
			int length = 0;
			while((length = dataReader.read(buf)) != -1 )
			{
				System.out.println("read "+length + " byte");
				datawriter.write(buf);
				datawriter.flush();
			}
		
	  }
	  catch(Exception e)
	  {}
	  finally
	  {
		  System.out.println("herree");
		  try {
			datawriter.close();
		
		  dataReader.close();
		  } catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
	  }
	  
	    String cmd = "227 Entering Passive Mode (172,20,46,10,203,52)";
		int start = 0;
		int end = 0;
		try {
			start = cmd.indexOf(new String("(".getBytes(),"GBK"));
		     end  =  cmd.indexOf(new String(")".getBytes(),"GBK"));
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		cmd = cmd.substring(start+1,end);
		System.out.println(cmd);
		test();*/
	     String path = "D:\\Viso2003.EXE";
	     File file = new File(path);
	     System.out.println(file.getName());
	  
  }
}
